package com.xmy.cultivate.service.impl;

import com.xmy.cultivate.entity.RecordCourseLack;
import com.xmy.cultivate.mapper.RecordCourseLackMapper;
import com.xmy.cultivate.service.IRecordCourseLackService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * <p>
 * 记上课先扣课时，金额保存 服务实现类
 * </p>
 *
 * @author hpiggy
 * @since 2024-06-04
 */
@Service
public class RecordCourseLackServiceImpl extends ServiceImpl<RecordCourseLackMapper, RecordCourseLack> implements IRecordCourseLackService {

    @Autowired
    RecordCourseLackMapper recordCourseLackMapper;

    @Override
    public BigDecimal getAllBucklemoneyForOrderDetailId(Long orderDetailId) {
        return recordCourseLackMapper.getAllBucklemoneyForOrderDetailId(orderDetailId);
    }
}
